package com.domain.service.impl;

import com.domain.dao.PublishTypeMapper;
import com.domain.pojo.PublishType;
import com.domain.service.PublishTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class PublishTypeServiceImpl implements PublishTypeService {

    @Autowired
    private PublishTypeMapper publishTypeMapper;

    /**
     * 获取发布类型列表
     *
     * @return
     */
    @Override
    public List<PublishType> getPublishType() {
        List<PublishType> publishTypes = publishTypeMapper.getPublishTypeList();
        return publishTypes;
    }
}
